+2006-08-08 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/gdkevents-quartz.c: (poll_func): Whitespace cleanup.
+ (synthesize_crossing_events): Add comments and prevent a crash.
+
2006-08-08 Michael Natterer <mitch@imendio.com>
* gdk/quartz/gdkwindow-quartz.c
+2006-08-08 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/gdkevents-quartz.c: (poll_func): Whitespace cleanup.
+ (synthesize_crossing_events): Add comments and prevent a crash.
+
2006-08-08 Michael Natterer <mitch@imendio.com>
* gdk/quartz/gdkwindow-quartz.c
{
if ([event type] == NSApplicationDefined)
{
-
pthread_mutex_lock (&pollfd_mutex);
for (i = 0; i < n_pollfds; i++)
if (n_active == 0 && wakeup_pipe[1])
{
char c = 'A';
+
write (wakeup_pipe[1], &c, 1);
}
{
ufds[0].revents = G_IO_IN;
- /* FIXME: We can't assert here, what we need to to is to have a queue
- * for events instead.
+ /* FIXME: We can't assert here, but we might need to have a
+ * queue for events instead.
*/
/*g_assert (current_event == NULL);*/
}
else
{
- /* Dunno where we are coming from */
- synthesize_enter_event (window, nsevent, mode, GDK_NOTIFY_UNKNOWN);
+ /* This means we have not current_mouse_window. FIXME: Should
+ * we make sure to always set the root window instead of NULL?
+ */
+
+ /* FIXME: Figure out why this is being called with window being
+ * NULL. The check works around a crash for now.
+ */
+ if (window)
+ synthesize_enter_event (window, nsevent, mode, GDK_NOTIFY_UNKNOWN);
}
_gdk_quartz_update_mouse_window (window);